package frontend.view;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class InsertPanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel name;
	private JLabel firstName;
	private JLabel mobileNr;
	private JLabel email;
	private JLabel function;
	private JLabel username;
	private JLabel role;
	private JLabel password;
	private JTextField nameField;
	private JTextField firstNameField;
	private JTextField mobileNrField;
	private JTextField emailField;
	private JTextField functionField;
	private JTextField usernameField;
	private JPasswordField passwordField;
	private JComboBox<String> roleField;
	private JPanel pnl;

	public InsertPanel() {
		name = new JLabel("Last Name");
		firstName = new JLabel("First Name");
		mobileNr = new JLabel("Mobile number");
		email = new JLabel("Email");
		function = new JLabel("Function");
		username = new JLabel("Username");
		password = new JLabel("Password");
		role = new JLabel("Role");
		usernameField = new JTextField();
		nameField = new JTextField();
		firstNameField = new JTextField();
		mobileNrField = new JTextField();
		emailField = new JTextField();
		functionField = new JTextField();
		passwordField = new JPasswordField();
		String[] roleString = { "Director General", "Director de Departament",
				"Director de HR", "Recruiter", "Administratorul aplicatiei",
				"Viewer" };
		roleField = new JComboBox<String>(roleString);
		pnl = new JPanel();
		pnl.setLayout(new GridLayout(8, 2, 0, 10));
		this.setLayout(new BorderLayout());
		pnl.add(name);
		pnl.add(nameField);
		pnl.add(firstName);
		pnl.add(firstNameField);
		pnl.add(username);
		pnl.add(usernameField);
		pnl.add(password);
		pnl.add(passwordField);
		pnl.add(mobileNr);
		pnl.add(mobileNrField);
		pnl.add(email);
		pnl.add(emailField);
		pnl.add(function);
		pnl.add(functionField);
		pnl.add(role);
		pnl.add(roleField);
		this.add(pnl, BorderLayout.NORTH);

	}

	public JTextField getNameField() {
		return nameField;
	}

	public void setNameField(JTextField nameField) {
		this.nameField = nameField;
	}

	public JTextField getFirstNameField() {
		return firstNameField;
	}

	public void setFirstNameField(JTextField firstNameField) {
		this.firstNameField = firstNameField;
	}

	public JTextField getMobileNrField() {
		return mobileNrField;
	}

	public void setMobileNrField(JTextField mobileNrField) {
		this.mobileNrField = mobileNrField;
	}

	public JTextField getEmailField() {
		return emailField;
	}

	public void setEmailField(JTextField emailField) {
		this.emailField = emailField;
	}

	public JTextField getFunctionField() {
		return functionField;
	}

	public void setFunctionField(JTextField functionField) {
		this.functionField = functionField;
	}

	public JTextField getUsernameField() {
		return usernameField;
	}

	public void setUsernameField(JTextField usernameField) {
		this.usernameField = usernameField;
	}

	public JComboBox<String> getRoleField() {
		return roleField;
	}

	public void setRoleField(JComboBox<String> roleField) {
		this.roleField = roleField;
	}

	public JPasswordField getPasswordField() {
		return passwordField;
	}

	public void setPasswordField(JPasswordField passwordField) {
		this.passwordField = passwordField;
	}
	
	

}
